1 /* FOREGEJ - FOrmatting REfactoring GEnerating Java
2 *
3 * Copyright (C) 2003 Andreas Arrgard
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 package examples;
20 /***
21 * To change the template for this generated type comment go to
22 * Window>Preferences>Java>Code Generation>Code and Comments
23 *
24 * @author andreas
25 * @foregej.attr implclass="TestImpl"
26 */
27 public class Test
28 {
29 /***
30 * This is a variable....<br>
31 */
32 public int[] test1_={10,10};
33 public int[][] test2_={{10},{10}};
34 /***
35 * Testing again <code>test()</code>- <code>test2()</code>
36 * <p a=""></p>
37 *
38 * @param test Tsting!!!
39 * @return de nada
40 */
41 public int test2(int test)
42 /*testa*/{
43 /*testb*/
44 int t=/*test1*/10/*test2*/;
45 for(int i=0, j=0; i<j; j++){
46 // dummy
47 }
48 /*test3*/
49 /***
50 * testing<br>
51 * [test] = asdf
52 * <p>
53 * Test<br>
54 * Hoj
55 * </p>
56 */
57 /*test4*/
58 String s=""+10+(20-100-200);
59 System.out.println("This string should NOT be wrapped since that generates an error...");
60 return 0;
61 }
62 /***
63 * Detta ar en test, vadara ge mig en small, som ska ta upp flera
64 * rader kod. Skriver jag inte tillrackligt mycket sa kommer inte
65 * texten att racka till en automatisk adbrytning.<br>
66 * Hej!
67 *
68 * @foregej.attr
69 * @param test
70 */
71 public static void setTest(int test)
72 {
73 }
74 /***
75 * @param dummy1
76 * @param dummy2
77 * @param dummy3
78 * @param dummy4
79 * @param dummy7 halla 7!!!
80 * @param dummy5 du 5
81 * @param dummy6 hej 6
82 */
83 public static void test5(int dummy1,int dummy2,int dummy3,int dummy4,
84 int dummy7,int dummy5,int dummy6)
85 {
86 {
87 {
88 {
89 {
90 {
91 {
92 {
93 {
94 {
95 test5(1+2+3+4+5+6+7+8,
96 2+3+4+5+6+7+8+9+0, 10,
97 11, 23, 5, 456456);
98 if(true==true||(false==false&&
99 false==false)||
100 true==true) {
101 // dummy
102 }
103 }
104 }
105 }
106 }
107 }
108 }
109 }
110 }
111 }
112 }
113 }
This page was automatically generated by Maven